export default {
  state: {
    clientHeight: document.documentElement.clientHeight,
    clientWidth: document.documentElement.clientWidth,
  },
  mutations: {
    /** 页面高度变化重置clientHeight的值*/
    onresize(state) {
      state.clientHeight = document.documentElement.clientHeight;
      state.clientWidth = document.documentElement.clientWidth;
    }
  }
}